package org.example.contractFinance.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同财务对象 b_contract_finance
 *
 * @author 小孟微信：xiaomengcode
 * @date 2024-04-20
 */
public class ContractFinance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long financeId;

    /** 账单id */
    @Excel(name = "账单id")
    private Integer accountId;
    @Excel(name = "账单")
    private String accountNo;
    /** 付款号 */
    @Excel(name = "付款号")
    private String financeNo;

    /** 合同ID */
    @Excel(name = "合同ID")
    private String contractId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderNo;

    /** 附件 */
    @Excel(name = "附件")
    private String files;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal totalMoney;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    public String getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    public void setFinanceId(Long financeId)
    {
        this.financeId = financeId;
    }

    public Long getFinanceId()
    {
        return financeId;
    }
    public void setAccountId(Integer accountId)
    {
        this.accountId = accountId;
    }

    public Integer getAccountId()
    {
        return accountId;
    }
    public void setFinanceNo(String financeNo)
    {
        this.financeNo = financeNo;
    }

    public String getFinanceNo()
    {
        return financeNo;
    }
    public void setContractId(String contractId)
    {
        this.contractId = contractId;
    }

    public String getContractId()
    {
        return contractId;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setFiles(String files)
    {
        this.files = files;
    }

    public String getFiles()
    {
        return files;
    }
    public void setTotalMoney(BigDecimal totalMoney)
    {
        this.totalMoney = totalMoney;
    }

    public BigDecimal getTotalMoney()
    {
        return totalMoney;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setPayTime(Date payTime)
    {
        this.payTime = payTime;
    }

    public Date getPayTime()
    {
        return payTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("financeId", getFinanceId())
                .append("accountId", getAccountId())
                .append("financeNo", getFinanceNo())
                .append("contractId", getContractId())
                .append("orderNo", getOrderNo())
                .append("files", getFiles())
                .append("totalMoney", getTotalMoney())
                .append("type", getType())
                .append("payTime", getPayTime())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("remark", getRemark())
                .toString();
    }
}
